import request from '@/utils/request'

// 查询预计回款列表
export function listDealExpectReceivable(query) {
  return request({
    url: '/receivable/dealExpectReceivable/list',
    method: 'get',
    params: query
  })
}

// 查询预计回款详细
export function getDealExpectReceivable(id) {
  return request({
    url: '/receivable/dealExpectReceivable/' + id,
    method: 'get'
  })
}

// 保存预计回款
export function saveDealExpectReceivable(data) {
  return request({
    url: '/receivable/dealExpectReceivable/save',
    method: 'post',
    data: data
  })
}

// 删除预计回款
export function delDealExpectReceivable(id) {
  return request({
    url: '/receivable/dealExpectReceivable/' + id,
    method: 'delete'
  })
}

// 导出预计回款
export function exportDealExpectReceivable(query) {
  return request({
    url: '/receivable/dealExpectReceivable/export',
    method: 'get',
    params: query
  })
}
